import java.awt.*;
import java.applet.*;

/**
 * @Deprecated (since = " 9 ", forRemoval = true) public class Applet extends Panel
 * Deprecated, for removal: This API element is subject to removal in a future version.
 * The Applet API is deprecated, no replacement.
 * An applet is a small program that is intended not to be run on its own, but rather to be embedded inside another application.
 * The Applet class must be the superclass of any applet that is to be embedded in a Web page or viewed by the Java Applet Viewer.
 * The Applet class provides a standard interface between applets and their environment
 */

//Applet is fu*king dead hahaha
public class CircleApplet extends Applet {
    public void paint(Graphics g) {
        int centerX = getWidth() / 2;
        int centerY = getHeight() / 2;

        int radius = 100;

        g.setColor(Color.blue);
        g.drawOval(centerX - radius, centerY - radius, 2 * radius, 2 * radius);

        Font font = new Font("Arial", Font.BOLD, 16);
        g.setFont(font);

        FontMetrics fm = g.getFontMetrics();
        int textWidth = fm.stringWidth("Your Name");
        int textHeight = fm.getHeight();

        int textX = centerX - textWidth / 2;
        int textY = centerY + textHeight / 2;

        g.setColor(Color.red);
        g.drawString("Your Name", textX, textY);
    }
}
